//
//  LeftMenu.m
//  ez.Coupon
//
//  Created by Mobility Lab on 12/31/13.
//  Copyright (c) 2013 iOS Team. All rights reserved.
//

#import "LeftMenu.h"
#import "Global.h"
#import "MenuCell.h"

@interface LeftMenu ()

@end

@implementation LeftMenu

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    //_titleMenuPage.textColor = APP_HEADER_COLOR;
    _titleMenuPage.textColor = UIColorFromRGB(_HEADER_COLOR);
    
    _arrayMenuCell = [NSMutableArray new];
    
    MenuCell *_menu = [MenuCell new];
    _menu.MenuText.text = @"View Listings";
    _menu.MenuImage.image = [UIImage imageNamed:@"gift.png"];
    //[_menu1 retain];
    [_arrayMenuCell addObject:_menu];
    
    _menu = [MenuCell new];
    _menu.MenuText.text = @"Select city";
    _menu.MenuImage.image = [UIImage imageNamed:@"gift.png"];
    //[_menu1 retain];
    [_arrayMenuCell addObject:_menu];
    
    _menu = [MenuCell new];
    _menu.MenuText.text = @"Favourites";
    _menu.MenuImage.image = [UIImage imageNamed:@"gift.png"];
    //[_menu1 retain];
    [_arrayMenuCell addObject:_menu];
    
}

-(NSInteger)tableView: (UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return [_arrayMenuCell count];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
